package orderOpe;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ReceiptListServlet extends HttpServlet {

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		// TODO 自動生成されたメソッド・スタブ
		perform(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		// TODO 自動生成されたメソッド・スタブ
		perform(req, resp);
	}
	private void perform(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

		// 値の取得＆設定
		String customer_code= req.getParameter("customer_code");		
		String start_date = req.getParameter("start_date");
		String last_date = req.getParameter("last_date");
		req.setAttribute("customer_code", customer_code);
		req.setAttribute("start_date", start_date);
		req.setAttribute("last_date", last_date);	

				getServletConfig().getServletContext().
				getRequestDispatcher("/operator/orderList.jsp" ).
				forward( req, resp );
	}
}
